<template>
  <div id="contractDetail">
    <el-form :model="data" label-width="auto">
      <el-form-item label="名称:">
        <p>{{ data.repairName }}</p>
      </el-form-item>
      <el-form-item label="负责人:">
        <p>{{ data.username }}</p>
      </el-form-item>
      <el-form-item label="预计完成维修时间:">
        <p>{{ data.deadline }}</p>
      </el-form-item>
      <el-form-item label="维修产品:" style="width: 100%">
        <el-table
          ref="table"
          row-key="id"
          :data="data.repairProductDTOS"
          border
          :header-cell-style="{ background: '#f5f7fa' }"
        >
          <el-table-column
            label="产品名称"
            prop="name"
            min-width="100"
          ></el-table-column>
          <el-table-column
            label="规格型号"
            prop="specification"
            min-width="100"
          ></el-table-column>
          <el-table-column
            label="材质"
            prop="material"
            min-width="100"
          ></el-table-column>
          <el-table-column
            label="备注"
            prop="remark"
            min-width="100"
          ></el-table-column>
          <el-table-column
            label="合同数量"
            prop="num"
            width="200"
          ></el-table-column>
          <el-table-column prop="rejectNum" label="维修数量" width="250">
          </el-table-column>
          <el-table-column
            label="单位"
            prop="unitName"
            width="200"
          ></el-table-column>
        </el-table>
      </el-form-item>
      <el-form-item label="备注:" style="width: 100%">
        <p>{{ data.remark }}</p>
      </el-form-item>
      <el-form-item label="维修状态:">
        <p v-if="data.status == 0">未完成</p>
        <p v-if="data.status == 1" style="color: #67c23a">已完成</p>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'detail',
  data () {
    return {
      form: {},
      isReloadData: true//局部刷新标识
    }
  },
  props: {
    data: {
      type: Object,
      required: true
    }
  },
  methods: {

  }

}
</script>
<style lang='scss' scoped>
</style>